<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>admin</title>
        <script type="text/javascript" src="/html/scripts/jquery.js">
        </script>
        <script type="text/javascript" src="/html/scripts/jquery.validate.js">
        </script>
        <script src="/html/yui/build/yuiloader/yuiloader-beta-min.js">
        </script>
        <!--已经创建 YAHOO_config 对象，现在我们加载 YUI 加载器；它会处理该对象并遵循我们提供的指示执行操作。-->
        <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.1/build/reset-fonts/reset-fonts.css">
        <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.1/build/base/base-min.css">
        <link href="/html/css/admin.css" rel="stylesheet" type="text/css" />
        <link href="/html/css/page.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="yui-skin-sam">
        <div style='display:none'>
            <?=$this->render ( "header.php" )?>
            <?=$this->render ( "menu.php" )?>
            <div id="frame_right">
                <?=$this->layout ()->content?>
            </div>
            <?=$this->render ( "footer.php" )?>
        </div>
    </body>
    <script>
        function myLoader(loader){
            var YUD = YAHOO.util.Dom;
            var YUE = YAHOO.util.Event;
            var oLayout = new YAHOO.widget.Layout({
                units: [{
                    body: 'header', // （必填）內容區塊的 id
                    gutter: '0 0 5px', //  與其它 unit 的間距、可以想成是 CSS 的 margin 
                    position: 'top', // （必填）此 unit 所在位置 
                    height: 35 // （必填、在 position 屬性為 left 或 right）此 unit 的高度  
                }, {
                    body: 'frame_right',
                    gutter: '0 5px 5px',
                    position: 'center',
                    resize: true,
                    scroll: true
                }, {
                    body: 'menu',
                    gutter: '0 0 5px 5px',
                    position: 'left',
                    width: 150,
                    scroll: true
                }, {
                    body: 'footer',
                    gutter: '0 5px',
                    position: 'bottom',
                    height: 20
                }]
            });
            oLayout.render();
        }
    </script>
    <script>
        var loader = new YAHOO.util.YUILoader({
            require: ['layout'], //需要什么组件？
            base: '/html/yui/build/', //它们放在哪里？
            loadOptional: true, //是否加载所有可选的依赖文件？
            onSuccess: myLoader,
            onFailure: function(msg, xhrobj){
                var m = "LOAD FAILED: " + msg;
                if (xhrobj) {
                    m += ", " + YAHOO.lang.dump(xhrobj);
                }
            }
        });
        loader.insert();
    </script>
</html>
